package com.zhentao.controller;

import com.zhentao.common.dtos.ResponseResult;
import com.zhentao.dating.domain.ApSocialCircle;
import com.zhentao.service.ApSocialCircleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/wx/publish-social")
public class PublishSocialController {
    @Autowired
    private ApSocialCircleService apSocialCircleService;


    /**
     * 发布交友圈动态
     * @param socialCircle
     * @return
     */
    @PostMapping("/auth/publishSocial")
    public ResponseResult publishSocial(@RequestBody ApSocialCircle socialCircle) {
        return apSocialCircleService.publishSocial(socialCircle);
    }
}
